package com.fatcat.easybuy.pojo;

/**
 *
 * @TableName easybuy_order_detail
 */
public class EasyBuyOrderDetail {
    /**
     * 主键
     */
    private Long id;

    /**
     * 订单主键
     */
    private Long orderId;

    /**
     * 商品主键
     */
    private Long productId;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 消费
     */
    private Double cost;

    private EasyBuyProduct product;

    public EasyBuyProduct getProduct() {
        return product;
    }

    public void setProduct(EasyBuyProduct product) {
        this.product = product;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Double getCost() {
        return cost;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderid=").append(orderId);
        sb.append(", productid=").append(productId);
        sb.append(", quantity=").append(quantity);
        sb.append(", cost=").append(cost);
        sb.append("]");
        return sb.toString();
    }
}